package cn.bugstack.trigger.http;


import cn.bugstack.api.dto.NotifyRequsetDTO;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController()
@CrossOrigin("*")
@RequestMapping("/api/v1/test/")
public class TestApiClientController {

    @RequestMapping(value = "group_buy_notify", method = RequestMethod.POST)
    public String groupBuyNotify(@RequestBody NotifyRequsetDTO notifyRequsetDTO) {
        log.info("模拟测试第三方服务接收拼团回调:{}", JSON.toJSONString(notifyRequsetDTO));

        return "success";
    }

}
